package com.example.demo.model;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Teacher {

    private  String name;
    @Id
    private  String id;
    private  Integer age;
    public Teacher() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }



    public  String getName(){
        return name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setName(String name){this.name=name;}
    public Teacher(String name, String id) {
        this.name = name;
        this.id = id;
    }
}
